package com.ruoyi.tongyan.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户‑通知映射对象 sys_user_notice
 * 
 * @author ruoyi
 * @date 2025-05-07
 */
public class SysUserNotice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    private Long id;

    /** 用户ID，关联 sys_user.user_id */
    @Excel(name = "用户ID，关联 sys_user.user_id")
    private Long userId;

    /** 通知ID，关联 sys_notice.notice_id */
    @Excel(name = "通知ID，关联 sys_notice.notice_id")
    private Long noticeId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setNoticeId(Long noticeId) 
    {
        this.noticeId = noticeId;
    }

    public Long getNoticeId() 
    {
        return noticeId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("noticeId", getNoticeId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
